#include <iostream>
#include <string>

using namespace std;

int main()
{
	int n;
	cin >> n;
	string s = to_string(n);
	while(s.length()<3){
		s="0"+s;
	}
	// cout<<s<<endl;
	for (int i = 0; i < s.length(); i++)
	{
		// cout<<s[i]<<" "<<endl;
		for (int j = 0; j < (int)s[i] - 48; j++)
		{
			if (i == 0)
			{
				cout << "B";
			}
			else if (i == 1)
			{
				cout << "S";
			}
		}
		if (i == 2)
		{
			for (int j = 0; j < (int)s[i] - 48; j++)
			{
				cout << j + 1;
			}
		}
	}

	return 0;
}